package com.tmc.bean.intair;

import com.tmc.util.DateUtil;

public class EthRuleReq {

	private String departureDate;
	private String fareReference;
	private String ref1;
	private String ref2;
	private String filingAirline;
	private String departureAirport;
	private String arrivalAirport;

	public EthRuleReq () {
		
	}
	
	public EthRuleReq (EthFare fare) {
		this.departureDate = DateUtil.toStrDate(fare.getFlights().get(0).getDepartureDate(), fare.getFlights().get(0).getDepartureTime());
	    this.fareReference = fare.getFareReference();
	    this.ref1 = fare.getRef1();
	    this.ref2 = fare.getRef2();
	    this.filingAirline = fare.getFilingAirline();
	    this.departureAirport = fare.getDepartureAirport();
	    this.arrivalAirport = fare.getArrivalAirport();
	}
	
	public String getDepartureDate() {
		return departureDate;
	}

	public void setDepartureDate(String departureDate) {
		this.departureDate = departureDate;
	}

	public String getFareReference() {
		return fareReference;
	}

	public void setFareReference(String fareReference) {
		this.fareReference = fareReference;
	}

	public String getRef1() {
		return ref1;
	}

	public void setRef1(String ref1) {
		this.ref1 = ref1;
	}

	public String getRef2() {
		return ref2;
	}

	public void setRef2(String ref2) {
		this.ref2 = ref2;
	}

	public String getFilingAirline() {
		return filingAirline;
	}

	public void setFilingAirline(String filingAirline) {
		this.filingAirline = filingAirline;
	}

	public String getDepartureAirport() {
		return departureAirport;
	}

	public void setDepartureAirport(String departureAirport) {
		this.departureAirport = departureAirport;
	}

	public String getArrivalAirport() {
		return arrivalAirport;
	}

	public void setArrivalAirport(String arrivalAirport) {
		this.arrivalAirport = arrivalAirport;
	}
}
